import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Home from "@/views/Home.vue";
import Detail from "@/views/Detail.vue";
import FunctionItem from "@/views/FunctionItem.vue"
import Mine from "@/views/Mine.vue"
import Commission from "@/views/Commission.vue"
import Dynamic from "@/views/Dynamic.vue"
import ComplateInfo from "@/views/ComplateInfo.vue"
import SelectRelease from "@/views/SelectRelease.vue"
import Release from "@/views/Release.vue"
import Message from "@/views/Message.vue"


Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: "/",
    //   name: "Home",
    //   component: Home,
    // },
    //首页
    {
      path: "/",
      name: "Home",
      component: Home,
    },
    //动态
    {
      path: "/dynamic",
      name: "Dynamic",
      component: Dynamic,
    },
    //发布信息选择
    {
      path: "/selectRelease",
      name: "SelectRelease",
      component: SelectRelease,
    },
    // 有佣金
    {
      path: "/commission",
      name: "Commission",
      component: Commission,
    },
    //我发布的
    {
      path: "/mine",
      name: "Mine",
      component: Mine,
    },
    //详情
    {
      path: "/detail",
      name: "Detail",
      component: Detail,
    },
    {
      path: "/functionitem",
      name: "FunctionItem",
      component: FunctionItem,
    },
    //完善资料
    {
      path: "/complateInfo",
      name: "ComplateInfo",
      component: ComplateInfo,
    },
    //发布信息
    {
      path: "/release",
      name: "Release",
      component: Release,
    },
    //消息中心
    {
      path:"/message",
      name:"Message",
      component:Message,
    }
  ]
})
